package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class updateStockRequest {
    @ApiModelProperty("id")
    @NotNull(message = "id不能为空")
    private Long id;
    @ApiModelProperty("是否增加 true 增加 false 减少")
    @NotNull(message = "修改类型不能为空")
    private Boolean isAdd;
    @ApiModelProperty("数量")
    @NotNull(message = "修改数量不能为空")
    @Min(value = 1,message = "最小值不能小于1")
    private Integer number;

}
